//package com.baitiaojun.system.controller;
//
//import com.baitiaojun.common.domain.model.result.CommonResult;
//import com.baitiaojun.common.enums.impl.OperatorTypeEnums;
//import com.baitiaojun.common.enums.impl.ServiceTypeEnums;
//import com.baitiaojun.datasource.core.datasource.annotation.DataSource;
//import com.baitiaojun.log.core.annotation.OperLog;
//import com.baitiaojun.ratelimit.core.annotation.RateLimit;
//import com.baitiaojun.repeatsubmit.core.annotation.SubmitRepeat;
//import com.baitiaojun.system.service.ExampleService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.DynamicPropertySource;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("log")
//@Api("日志控制器")
//public class TestController {
//
//    @Autowired
//    private ExampleService exampleService;
//
//    @ApiOperation("日志测试接口")
//    @OperLog(title = "example",
//            businessTypeEnums = ServiceTypeEnums.OTHER,
//            operatorTypeEnums = OperatorTypeEnums.MANAGE)
//    @SubmitRepeat
//    @RateLimit(key = "test", count = 2, RATE_LIMIT_TYPE = RateLimit.RateLimitType.IP)
//    @GetMapping("/test")
//    public CommonResult logTest() {
//        String data = exampleService.example("hello world");
//        return CommonResult.ok(data);
//    }
//}
